/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

const courseRouter = {
  path: '/course',
  component: Layout,
  redirect: '/class/list',
  alwaysShow: true, // will always show the root menu
  name: 'course',
  meta: {
    title: '课程管理',
    icon: 'tab',
    roles: ['admin', 'org', 'school'] // you can set roles in root nav
  },
  children: [
    {
      path: 'series',
      component: () => import('@/views/course/series'),
      name: 'series',
      meta: { title: '系列管理', icon: 'list' }
    },
    {
      path: 'chapter',
      component: () => import('@/views/course/chapter'),
      name: 'chapter',
      meta: { title: '章节管理', icon: 'list' }
    },
    {
      path: 'course',
      component: () => import('@/views/course/course'),
      name: 'course',
      meta: { title: '课程关卡管理', icon: 'course' }
    }
  ]
}

export default courseRouter
